﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace ApiDoc.Admin.Model
{
    public class KeyValueModel: INotifyPropertyChanged
    {
        private string title;

        public string Title
        {
            get { return title; }
            set { title = value;
                if (this.PropertyChanged != null)
                {
                    this.PropertyChanged(this, new PropertyChangedEventArgs("Title"));
                }
            }
        }

        private string _value;

        public string Value
        {
            get { return _value; }
            set { _value = value;
                if (this.PropertyChanged != null)
                {
                    this.PropertyChanged(this, new PropertyChangedEventArgs("Value"));
                }
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
    }
}
